import requests from "../request";

// 登录 phone password
export const reqLogin = (data)=>requests({
  url:`/user/passport/login`,
  method:'post',
  data
})
//获取用户信息【需要带着用户的token向服务器要用户信息】
//URL:/api/user/passport/auth/getUserInfo  method:get 
export const reqUserInfo = ()=>requests({url:'/user/passport/auth/getUserInfo',method:'get'});



// 退出登陆 /api/user/passport/logout GET
export const reqLogout = ()=>requests({
  url:'/user/passport/logout',
  method:'get'
})
